package com.base.sqlparser;

import com.base.param.DeleteSqlParam;
import com.base.param.InsertSqlParam;
import com.base.param.SelectSqlParam;
import com.base.param.UpdateSqlParam;

/**
 * Created on 2023/7/7.
 *
 * @author zhaojb
 */
public interface SqlCreator {
    /**
     * 获取Select的sql
     *
     * @param selectSqlParam
     * @return
     */
    String getSimpleSelectSql(SelectSqlParam selectSqlParam);

    /**
     * 获取totalSize
     *
     * @param selectSqlParam
     * @return
     */
    String getCountSql(SelectSqlParam selectSqlParam);

    /**
     * 获取delete的sql
     *
     * @param deleteSqlParam
     * @return
     */
    String getSimpleDeleteSql(DeleteSqlParam deleteSqlParam);


    /**
     * 获取Insert的sql
     *
     * @param insertSqlParam
     * @return
     */
    String getSimpleInsertSql(InsertSqlParam insertSqlParam);


    /**
     * 获取Update的sql
     *
     * @param updateSqlParam
     * @return
     */
    String getSimpleUpdateSql(UpdateSqlParam updateSqlParam);

}
